package com.vf.admin.platform.controller;

import java.text.SimpleDateFormat;

/**
 * <p>Title : </p>
 * <p>Description : </p>
 * <p>DevelopTools : IDEA</p>
 * <p>DevelopSystem : Windows11</p>
 *
 * @Author : zxw
 * @Date 2023/10/27 15:54
 */
public class test {

    public static void main(String[] args) {
//        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
//        String format = formatter.format("2023-10-26");
        String format = "2023-10-26";

        String substring = format.substring(0, 7);
        System.out.println(substring);

    }
}
